
import Vue from "vue"
import Router from "vue-router"


import Login from "@/pages/login"
import Home from '@/pages/home'


// template 内页
import Menu from '@/template/menu'   // 菜单管理

Vue.use(Router)

const router = new Router({
	mode:'history',
	base:process.env.BASE_URL,
	routes: [
		{
			path: '/login',
			name: "login",
			component: Login
		},
		{
			path: '/home',
			name: "home",
			component: Home,
			children:[
				{
					path: '/home/menu',
					name: "menu",
					component: Menu,
				}
			]
		}
	]
})

export default router

 









